/*
 * @Author: ygnnli 1585923072@qq.com
 * @Date: 2024-08-23 16:05:33
 * @LastEditors: ygnnli 1585923072@qq.com
 * @LastEditTime: 2024-08-24 15:43:55
 * @FilePath: /boost_searcher/test/test.cpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#include <iostream>
#include <string>
#include <boost/algorithm/string.hpp>
#include <vector>

int main()
{
    std::vector<std::string> result;//是vector类型
    std::string target = "aaaaa\3\3\3\3\3sdad\3cacac";
    boost::split(result, target,boost::is_any_of("\3"), boost::token_compress_on);//boost::is_any_of("\3")表示以\3为分隔符，boost::token_compress_on表示压缩空格

    for(auto &s : result)
    {
        std::cout << s << std::endl;
    }

    return 0;
}